<?php
$id = $_REQUEST['id'];
$con = mysqli_connect('localhost','root', '', 'friday');
mysqli_set_charset($con,"utf8");
$sql = "select * from serve  where id='{$id}'";
$res = mysqli_query($con, $sql);
$arr = mysqli_fetch_all($res,MYSQLI_ASSOC);
echo json_encode($arr);
mysqli_close($con);
?>